package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.mapper.OrderrMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OrdeMapper;
import com.ruoyi.system.domain.Orde;
import com.ruoyi.system.service.IOrdeService;

/**
 * 收款Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-13
 */
@Service
public class OrdeServiceImpl implements IOrdeService 
{
    @Autowired
    private OrdeMapper ordeMapper;
    @Autowired
    private OrderrMapper orderrMapper;

    /**
     * 查询收款
     * 
     * @param recordId 收款主键
     * @return 收款
     */
    @Override
    public Orde selectOrdeByRecordId(Long recordId)
    {
        return ordeMapper.selectOrdeByRecordId(recordId);
    }

    /**
     * 查询收款列表
     * 
     * @param orde 收款
     * @return 收款
     */
    @Override
    public List<Orde> selectOrdeList(Orde orde)
    {
        return ordeMapper.selectOrdeList1(orde);
    }

    @Override
    public List<Orde> selectOrdeList2(Orde orde) {
        return ordeMapper.selectOrdeList2(orde);
    }

    @Override
    public List<Orde> selectOrdeList3(Orde orde) {
        return ordeMapper.selectOrdeList3(orde);
    }

    @Override
    public List<Orde> selectOrdeList4(Orde orde) {
        return ordeMapper.selectOrdeList4(orde);
    }

    /**
     * 新增收款
     * 
     * @param orde 收款
     * @return 结果
     */
    @Override
    public int insertOrde(Orde orde)
    {
        return ordeMapper.insertOrde(orde);
    }

    /**
     * 修改收款
     * 
     * @param orde 收款
     * @return 结果
     */
    @Override
    public int updateOrde(Orde orde)
    {
        return ordeMapper.updateOrde(orde);
    }

    /**
     * 批量删除收款
     * 
     * @param recordIds 需要删除的收款主键
     * @return 结果
     */
    @Override
    public int deleteOrdeByRecordIds(Long[] recordIds)
    {
        return ordeMapper.deleteOrdeByRecordIds(recordIds);
    }

    /**
     * 删除收款信息
     * 
     * @param recordId 收款主键
     * @return 结果
     */
    @Override
    public int deleteOrdeByRecordId(Long recordId)
    {
        return ordeMapper.deleteOrdeByRecordId(recordId);
    }
}
